##
##  $Header: /pub/cvsroot/mydns/doc/Makefile.am,v 1.47 2002/11/15 10:41:31 bboy Exp $
##

SUBDIRS			=	man texi
EXTRA_DIST		=	README support/texi2html support/texi2html.init

sedvars:
	@if ! `test -f ../version.sed`; then cd .. && $(MAKE) sedfile; fi


manpages:
	@cd man && $(MAKE) man

man: manpages
	-cp man/*.[1-9] .

info:
	@cd texi && $(MAKE) info
	@if test -f texi/mydns.info; then cp texi/mydns.info .; fi

ps:
	@cd texi && $(MAKE) ps
	-cp texi/*.ps .

pdf:
	@cd texi && $(MAKE) pdf
	@if test -f texi/mydns.pdf; then cp texi/mydns.pdf .; fi

htmlfiles:
	@cd texi && $(MAKE) html
	@if ! test -d html; then mkdir html; fi
	@rm -f html/*
	-cp texi/html/* html

html: htmlfiles

release:

all: sedvars man info

clean:
	rm -f mydns.info *.[1-9] mydns*.ps mydns.pdf
	rm -rf html

## Recent versions of automake seem to need this... *shrug*
install-info-am:

.PHONY: install-info-am htmlfiles sedvars man info manpages


## vi:set ts=3:
